Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


USBExpertInstallDeviceDriver

The USBExpertInstallDeviceDriver function notifies the USB Manager that there is a device that needs a driver matched and loaded. Typically only hub drivers need the service provided by this function.

OSStatus USBExpertInstallDeviceDriver (
                     USBDeviceRef ref,
                     USBDeviceDescriptorPtr *descUSBReference hubRef,
                     UInt32 port,
                     UInt32 busPowerAvailable);

The ref parameter can be a device reference or an interface reference. Similarly the desc parameter can be a device or interface descriptor.

--> ref
Device reference of the new device.
--> desc
Device descriptor of the device to find a driver for. See also, Device Descriptor Structure
--> hubRef
The device reference of the parent hub of this device.
--> port
The parent port of this device.
busPowerAvailable
How much current is available from the bus for the device, in 2 milliamperes (mA) units. This should have one of two values, 100mA ( kUSB100mAAvailable ) for a bus-powered hub parent and 500mA ( kUSB500mAAvailable ) for a self-powered parent. See USB Power and Bus Attribute Constants .

© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames